<?php 

try{
	$pdo = new PDO('mysql:host=localhost; dbname=exercise', 'root', 'root');
	$sql = "delete from user where id<:id";
	$stmt = $pdo -> prepare($sql);
	$stmt -> bindParam(":id", $id, PDO::PARAM_INT);
	$id = 6;
	$stmt -> execute();
	echo $stmt->rowCount();


}catch(PDEOxception $e) {
	echo $e->getMessage();
} 

 ?>